how find equation when imaginary roots are given